make the orientation flipping much simpler by using the GtkOrientable
authorMichael Natterer <mitch@imendio.com>
Thu, 19 Feb 2009 15:10:34 +0000 (15:10 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Thu, 19 Feb 2009 15:10:34 +0000 (15:10 +0000)
commit9da282480f6de2d1d599e63a72c6352e536a637a
tree64f83bed90dd3927a7f18acd6bca308098a976b9
parent72e75a5d933cf19377e08c5d6f6e589580259a6c
make the orientation flipping much simpler by using the GtkOrientable

2009-02-19  Michael Natterer  <mitch@imendio.com>

* gtk/gtkscalebutton.c: make the orientation flipping much simpler
by using the GtkOrientable features of the involved widgets:

(gtk_scale_button_init): create the frame, box and scale here,
they never need to be recreated because they implement GtkOrientable.

(gtk_scale_button_constructor): remove their construction here.

(gtk_scale_button_set_orientation): don't destroy and re-create
anything. Instead, simply set the orientation of the above created
widgets and fiddle a bit with the "plus" and "minus" buttons'
packing and the scale's "inverted" state.

Remove separate internal GtkScaleButtonHScale and
GtkScaleButtonVScale subclasses and simply have a
GtkScaleButtonScale directly inherited from GtkScale.

svn path=/trunk/; revision=22375
ChangeLog
gtk/gtkscalebutton.c